def chickid(id):
    if (len(id) <= 8):
        if (id.isalpha() > 0 or id.isdigit() > 0 or id.index("_") > 0):
            print("id输入正确")
        else:
            print("只能由数字、字母、下划线组成")
    else:
        print("Id长度不能超过8")


def checkEmail(email):
    if ("@" in email):
        if (".com" in email[-4: -1]):
            print("email输入正确")
    else:
        print("email输入有误")


def checkIde(ide):
    if (len(ide) != 18 and ide.isdigit() != 18):
        print("身份证输入有误")
    else:
        print("身份证输入正确")


def checkName(name):
    if (len(name) >= 2 and len(name) <= 4):
        for ch in name:
            if u'\u4e00' <= ch <= u'\u9fff':
                print("姓名输入正确")
            else:
                print("只能为中文")
    else:
        print("姓名只能有二到四个中文")

id=input("请输入ID：")
email = input("请输入电子邮件：")
ide =input("身份证号：")
name = input("输入姓名：")
checkName(name)
chickid(id)
checkEmail(email)
checkIde(ide)
